package com.hlz.lib.effectivejava.chapter2;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Hongliang Zhu
 * @create 2023-08-20 13:47
 */
public class StaticFactoryMethodDemo {
    public static void main(String[] args) {

        BigInteger bigInteger = BigInteger.valueOf(10000000L);

        ArrayList<String> hello = new ArrayList<String>() {{
            add("hello");
        }};
        List<String> list = Collections.unmodifiableList(hello);

    }
}
